home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / R / RCMD Mover.cpt / sound player rcmd.txt < prev    next >
Text File  |  1989-12-29  |  1KB  |  53 lines

  1.  
  2. (Sound Player RCMD 1.0
  3. (Written & Copyright '89
  4. (By Robert A. Daniel
  5.  
  6. (This RCMD will play digitized 'snd' files identified by a resource ID.
  7. (You supply the Resource ID of the sound, the Volume between 0-7, and
  8. (the ratio to play the sound.  
  9.  
  10.  
  11. (The RCMD can be copied into your procedure using ResEdit or RCMD Mover.
  12. (Any 'snd' can be played. Just copy the 'snd' resource(s) into the same 
  13. (procedure containing this RCMD. Then play the 'snd' by using the 'snd'
  14. (ID number. The ratio is set with N% and D% as N%:D%. A 1:1 ratio will
  15. (play normal for most sounds. 2:1 ratio will play twice as fast. 1:2
  16. (will play twice as slow.  
  17.  
  18.  
  19. (Here are a few samples:
  20.  
  21. ( I% - The 'snd' resource ID
  22. ( N% - The numerator of the ratio
  23. ( D% - The denominator of the ratio
  24. ( V% - The volume to play the sound
  25.  
  26.  
  27. ('snd' 26346 is a sound provided in this procedure
  28. LET EQUAL I%,26346
  29. LET EQUAL N%,1
  30. LET EQUAL D%,1
  31. LET EQUAL V%,7
  32. RCMD 1,299
  33.  
  34.  
  35. ('snd' 26346 is a sound provided in this procedure
  36. LET EQUAL I%,26346
  37. LET EQUAL N%,1
  38. LET EQUAL D%,2
  39. LET EQUAL V%,7
  40. RCMD 1,299
  41.  
  42.  
  43.  
  44. ('snd' 3 is a system beep sound
  45. LET EQUAL I%,3
  46. LET EQUAL N%,1
  47. LET EQUAL D%,5
  48. LET EQUAL V%,7
  49. RCMD 1,299
  50.  
  51. (Written & Copyright '89
  52. (Bob Daniel
  53. (GEnie mail: B.DANIEL